package lab02.test29;

public class Test {
    public static void main(String[] args) {
        int[] numbers = new int[5];
        numbers[0] = 21;
        numbers[1] = 221;
        numbers[2] = 281;
        numbers[3] = 271;
        numbers[4] = 231;

        try {
            System.out.println(numbers[5]);
        } catch (ArrayIndexOutOfBoundsException e) {
            System.out.println("数组下标越界");
        } finally {
            System.out.println("都要执行代码");
        }
    }
}
